package com.cqut.dto;

import com.cqut.util.BeanUtil;

import java.util.Date;

import com.cqut.model.FollowManager;

import java.io.Serializable;

import org.springframework.format.annotation.DateTimeFormat;


public class FollowManagerDTO implements Serializable {
        
        private static final long serialVersionUID = 1L;
        
        private String userId;
        
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date followTime;
        
        private String competitionId;
        
        public String getUserId() {
            return this.userId;
        }
        
        public void setUserId(String userId) {
            this.userId = userId;
        }
        
        public String getCompetitionId() {
            return this.competitionId;
        }
        
        public void setCompetitionId(String competitionId) {
            this.competitionId = competitionId;
        }
        
        public Date getFollowTime() {
            return this.followTime;
        }
        
        public void setFollowTime(Date followTime) {
            this.followTime = followTime;
        }
        
        public FollowManager toModel() {
            FollowManager model = new FollowManager();
			BeanUtil.convert(this, model);
			return model;
        }
    
}